import axios from '@/utils/downLoad'
import moment from "moment";

export function getPositionTemplate(params) {
  return axios({
    url: '/DownloadTemplate/position',
    method: 'post',
    data: params
  })
}

export function getPositionScoreTemplate(params) {
    return axios({
      url: '/DownloadTemplate/positionScore',
      method: 'post',
      data: params
    })
  }

  export function getPositionPieceTemplate(params) {
    return axios({
      url: '/DownloadTemplate/positionPiece',
      method: 'post',
      data: params
    })
  }

  export function getPieceTemplate(params) {
    return axios({
      url: '/DownloadTemplate/piece',
      method: 'post',
      data: params
    })
  }

  export function getScoreTemplate(params) {
    return axios({
      url: '/DownloadTemplate/score',
      method: 'post',
      data: params
    })
  }

  export function getEmployeeTemplate(params) {
    return axios({
      url: '/DownloadTemplate/employee',
      method: 'post',
      data: params
    })
  }

  export function getRewardTemplate(params) {
    return axios({
      url: '/DownloadTemplate/reward',
      method: 'post',
      data: params
    })
  }
  
  
  export function getPartTimeRewardTemplate(params) {
    return axios({
      url: '/DownloadTemplate/partTimeReward',
      method: 'post',
      data: params
    })
  }

  export function getPositionKpiTemplate(params) {
    return axios({
      url: '/DownloadTemplate/positionKpi',
      method: 'post',
      data: params
    })
  }

  export function getEmpKpiTemplate(params) {
    return axios({
      url: '/DownloadTemplate/empKpi',
      method: 'post',
      data: params
    })
  }

  export function getEmpPieceTemplate(params) {
    return axios({
      url: '/DownloadTemplate/empPiece',
      method: 'post',
      data: params
    })
  }
  export function getRegionTemplate(params) {
    return axios({
      url: '/DownloadTemplate/region',
      method: 'post',
      data: params
    })
  }
  export function getKpiTemplate(params) {
    return axios({
      url: '/DownloadTemplate/kpi',
      method: 'post',
      data: params
    })
  }
  export function getOkrTemplate(params) {
    return axios({
      url: '/DownloadTemplate/okr',
      method: 'post',
      data: params
    })
  }
  export function getCoefficientTemplate(params) {
    return axios({
      url: '/DownloadTemplate/empCoe',
      method: 'post',
      data: params
    })
  }
  export function getEmpPositionTemplate(params) {
    return axios({
      url: '/DownloadTemplate/empPosition',
      method: 'post',
      data: params
    })
  }
  export function getDeptPerformanceTemplate(params) {
    return axios({
      url: '/DownloadTemplate/deptPerformance',
      method: 'post',
      data: params
    })
  }
  export function getEmpPerformanceTemplate(params) {
    return axios({
      url: '/DownloadTemplate/positionPerformance',
      method: 'post',
      data: params
    })
  }
  export function getPerformanceRuleTemplate(params) {
    return axios({
      url: '/DownloadTemplate/performanceRule',
      method: 'post',
      data: params
    })
  }